package com.earthchen.demo.dto;

import javax.validation.constraints.NotEmpty;

/**
 * 授权用户角色dto
 *
 * @author earthchen
 * @date 2018/9/6
 **/
public class AuthorityUserRoleDTO {


    @NotEmpty(message = "用户id不能为空")
    private Long userId;

    @NotEmpty(message = "角色id不能为空")
    private Long roleId;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "AuthorityUserRoleDTO{" +
                "userId=" + userId +
                ", roleId=" + roleId +
                '}';
    }
}
